package mypackage.bean;

/**
 * @author YH925
 * @create 2021/12/12 21:26
 */
public class Profits {
    private int id;
    private String goodsId;
    private Goods goods;
    private String name;
    private double saleMoney;
    private double cost;
    private double profit;
    private int amount;
    public Profits() {
    }

    public Profits(int id, String goodsId, Goods goods, String name, double saleMoney, double cost, double profit, int amount) {
        this.id = id;
        this.goodsId = goodsId;
        this.goods = goods;
        this.name = name;
        this.saleMoney = saleMoney;
        this.cost = cost;
        this.profit = profit;
        this.amount = amount;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public double getSaleMoney() {
        return saleMoney;
    }

    public void setSaleMoney(double saleMoney) {
        this.saleMoney = saleMoney;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public double getProfit() {
        return profit;
    }

    public void setProfit(double profit) {
        this.profit = profit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Profits{" +
                "id=" + id +
                ", goodsId='" + goodsId + '\'' +
                ", goods=" + goods +
                ", name='" + name + '\'' +
                ", saleMoney=" + saleMoney +
                ", cost=" + cost +
                ", profit=" + profit +
                ", amount=" + amount +
                '}';
    }
}
